//
//  HMFactory.m
//  localLife
//
//  Created by Limonwei on 15/11/23.
//  Copyright © 2015年 heima. All rights reserved.
//

#import "HMFactory.h"

@implementation HMFactory

+(UIButton *)type:(int)type withFrame:(CGRect)frame withTitle:(NSString *)title  withTarget:(id)target withAction:(SEL)action{
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    
    button.frame = frame;
    
    [button setTitle:title forState:UIControlStateNormal];
    
    [button addTarget:target action:action forControlEvents:UIControlEventTouchUpInside];
    
    return button;
    
}

@end
